atom_feed do |feed|
  feed.title("Friends")
  feed.updated((@person.created_at))
  feed.link(:rel  => 'http://schemas.google.com/g/2005#feed',
            :type => 'application/atom+xml',
            :href => "http://#{request.host_with_port}/#{request.request_uri}"
           )
  feed.link(:rel  => 'self', 
            :type => 'application/atom+xml',
            :href => "http://#{request.host_with_port}/#{request.request_uri}"
           )

  for friend in @person.friends
    feed.entry(friend) do |entry|
      entry.title(friend.name)
    end 
  end
end
